package com.stary.code.springboot.config.data;
/**
 * redis 配置类
 * @author stary
 * @date 2018年7月24日 下午2:43:29
 */
public class RedisConfig {
	/**
	 * Database index used by the connection factory.
	 */
	private int database=0;
	/**
	 * Redis server host.
	 */
	private String host="localhost";

	/**
	 * Login password of the redis server.
	 */
	private String password;

	/**
	 * Redis server port.
	 */
	private int port=6379;
	/**
	 * Connection timeout in milliseconds.
	 */
	private int timeout=0;
	/**
	 * pool max-idle
	 */
	private int maxIdle=8;
	/**
	 * pool max-active
	 */
	private int maxActive=8;
	/**
	 * pool max-wait
	 */
	private int maxWait=-1;
	/**
	 * pool min-idle
	 */
	private int minIdle=0;
	/**
	 * sentinel redis server name
	 */
	private String master;
	/**
	 * sentinel nodes
	 */
	private String nodes;
	public int getDatabase() {
		return database;
	}
	public void setDatabase(int database) {
		this.database = database;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getTimeout() {
		return timeout;
	}
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public int getMaxIdle() {
		return maxIdle;
	}
	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}
	
	public int getMaxActive() {
		return maxActive;
	}
	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}
	public int getMaxWait() {
		return maxWait;
	}
	public void setMaxWait(int maxWait) {
		this.maxWait = maxWait;
	}
	public int getMinIdle() {
		return minIdle;
	}
	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}
	public String getMaster() {
		return master;
	}
	public void setMaster(String master) {
		this.master = master;
	}
	public String getNodes() {
		return nodes;
	}
	public void setNodes(String nodes) {
		this.nodes = nodes;
	}
	
}
